home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / ghostscript / 8.64 / lib / PDFX_def.ps < prev    next >
Encoding:
Text File  |  2009-04-17  |  1.8 KB  |  52 lines

  1. %!
  2. % $Id: PDFX_def.ps 8284 2007-10-10 17:40:38Z giles $
  3. % This is a sample prefix file for creating a PDF/X-3 document.
  4. % Feel free to modify entries marked with "Customize".
  5.  
  6. % This assumes an ICC profile to reside in the file (ISO Coated sb.icc),
  7. % unless the user modifies the corresponding line below.
  8.  
  9.  
  10. systemdict /ProcessColorModel known {
  11.   systemdict /ProcessColorModel get dup /DeviceGray ne exch /DeviceCMYK ne and
  12. } {
  13.   true
  14. } ifelse 
  15. { (ERROR: ProcessColorModel must be /DeviceGray or DeviceCMYK.)=
  16.   /ProcessColorModel cvx /rangecheck signalerror
  17. } if
  18.  
  19.  
  20. % Define entries to the document Info dictionary :
  21.  
  22. /ICCProfile (ISO Coated sb.icc) def  % Customize or remove.
  23.  
  24. [ /GTS_PDFXVersion (PDF/X-3:2002) % Must be so (the standard requires).
  25.   /Title (Title)                  % Customize.
  26.   /Trapped /False                 % Must be so (Ghostscript doesn't provide other).
  27.   /DOCINFO pdfmark
  28.  
  29. % Define an ICC profile :
  30.  
  31. currentdict /ICCProfile known {
  32.   [/_objdef {icc_PDFX} /type /stream /OBJ pdfmark
  33.   [{icc_PDFX} <</N systemdict /ProcessColorModel get /DeviceGray eq {1} {4} ifelse >> /PUT pdfmark
  34.   [{icc_PDFX} ICCProfile (r) file /PUT pdfmark
  35. } if
  36.  
  37. % Define the output intent dictionary :
  38.  
  39. [/_objdef {OutputIntent_PDFX} /type /dict /OBJ pdfmark
  40. [{OutputIntent_PDFX} <<
  41.   /Type /OutputIntent              % Must be so (the standard requires).
  42.   /S /GTS_PDFX                     % Must be so (the standard requires).
  43.   /OutputCondition (Commercial and specialty printing) % Customize
  44.   /Info (none)                     % Customize
  45.   /OutputConditionIdentifier (CGATS TR001)      % Customize
  46.   /RegistryName (http://www.color.org)   % Must be so (the standard requires).
  47.   currentdict /ICCProfile known {
  48.     /DestOutputProfile {icc_PDFX}  % Must be so (see above).
  49.   } if
  50. >> /PUT pdfmark
  51. [{Catalog} <</OutputIntents [ {OutputIntent_PDFX} ]>> /PUT pdfmark
  52.